using System;
using System.Collections.Generic;
using System.Text;

using System.Data;
using Husb.Data;
using Husb.Util;
using CentralOffice.Enterprise.Data;
using CentralOffice.Enterprise.DataAccess;
using ContactTable = CentralOffice.Enterprise.Data.EnterpriseContactDataSet.EnterpriseContactsDataTable;
using ContactRow = CentralOffice.Enterprise.Data.EnterpriseContactDataSet.EnterpriseContactsRow;


namespace CentralOffice.Enterprise.BusinessActions
{
    public class EnterpriseContact : DataAccessManager<EnterpriseContactDataSet, ContactTable, ContactRow, EnterpriseContactAdapter>
    {
        public static ContactTable FetchByEnterpriseId(Guid enterpriseId)
        {
            EnterpriseContactAdapter adapter = new EnterpriseContactAdapter();
            return adapter.FetchByEnterpriseId(enterpriseId);
        }
        public static string GetUserNameByContactId(Guid contactId)
        {
            EnterpriseContactAdapter adapter = new EnterpriseContactAdapter();
            return adapter.GetUserNameByContactId(contactId);
        }
    }
}
